//
//  BCSaveQRImageSuccessToastView.m
//  GSBlockChain
//
//  Created by guoshikeji_a on 2018/11/15.
//  Copyright © 2018年 guoshikeji. All rights reserved.
//

#import "BCSaveQRImageSuccessToastView.h"

@interface BCSaveQRImageSuccessToastView ()

@end

@implementation BCSaveQRImageSuccessToastView

+ (void)showInView:(UIView *)view {
    BCSaveQRImageSuccessToastView *toast = [[BCSaveQRImageSuccessToastView alloc] initWithView:view];
    toast.toastPosition = QMUIToastViewPositionBottom;
    QMUIToastAnimator *animator = [[QMUIToastAnimator alloc] initWithToastView:toast];
    animator.animationType = QMUIToastAnimationTypeSlide;
    toast.toastAnimator = animator;
    QMUIToastContentView *contentView = (QMUIToastContentView *)toast.contentView;

    UIView *customView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, ScreenWidth, 100)];
    contentView.customView = customView;
    
    toast.maskView.backgroundColor = RGBHEXA(0x000000, 1);
    
    
    QMUIToastBackgroundView *backgroundView = (QMUIToastBackgroundView *)toast.backgroundView;
    backgroundView.styleColor = [UIColor darkMainColor];
    backgroundView.shouldBlurBackgroundView = true;
    
    [view addSubview:toast];
    [toast showAnimated:true];
}

@end
